﻿using System;
using System.Web.Mvc;
using CharacterCreation.Business.Controllers;
using CharacterCreation.Business.ViewModels;

namespace CharacterCreation.Web.Controllers
{

    public class SkillController : BaseController<VMSkill> {

        public virtual ActionResult EditDescription(Guid id)
        {
            VMSkill entity = repository.Get(id);
            return View(entity);
        }

        [HttpPost]
        [ValidateInput(false)]
        public virtual ActionResult EditDescription(VMSkill entity)
        {
            repository.Update(entity);
            return RedirectToAction("Index");
        }

    }
    
}
